package account;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * 账变记录
 * @author liuding,2012-3-14
 *
 * $LastChangedDate$
 * $Author$ 
 */
@Entity
@Table
public class AccountRecord
{
    private int id;
    private int uid;    // userId
    private int operationUid;  //操作人编号
    private int operation;  //操作类别  1:账户充值 -1:消费
    private int consumType;  //消费类别
    private String note;  //备注，说明
    private double amount;
    private String ip;
    private Date date;
    
    @Id
    @GeneratedValue
    public int getId()
    {
        return id;
    }
    public void setId(int id)
    {
        this.id = id;
    }
    public double getAmount()
    {
        return amount;
    }
    public void setAmount(double amount)
    {
        this.amount = amount;
    }
    public int getConsumType()
    {
        return consumType;
    }
    public void setConsumType(int consumType)
    {
        this.consumType = consumType;
    }
    @Temporal(TemporalType.TIMESTAMP)
    public Date getDate()
    {
        return date;
    }
    public void setDate(Date date)
    {
        this.date = date;
    }
    public String getIp()
    {
        return ip;
    }
    public void setIp(String ip)
    {
        this.ip = ip;
    }
    public int getOperation()
    {
        return operation;
    }
    public void setOperation(int operation)
    {
        this.operation = operation;
    }
    public int getOperationUid()
    {
        return operationUid;
    }
    public void setOperationUid(int operationUid)
    {
        this.operationUid = operationUid;
    }
    public int getUid()
    {
        return uid;
    }
    public void setUid(int uid)
    {
        this.uid = uid;
    }
    public String getNote()
    {
        return note;
    }
    public void setNote(String note)
    {
        this.note = note;
    }
    
    
}
